#include <iostream>
#include <thread>
using namespace std;
//一个智能指针
unique_ptr<int> myp(new int(100));

void myprint2(const unique_ptr<int> &myp)
{
    cout << myp << endl;
    cout << *myp << endl;
return;
}

int main()
{

    thread mytobj(myprint2,std::move(myp));
    
    mytobj.join();

    cout<< "1主线程:" << endl;
    cout<< "2主线程:" << endl;
    cout<< "3主线程:" << endl;
    return 0;
}
